package mjava.lib;

import java.io.Serializable;

public class DTYPE implements Serializable {
	private static final long serialVersionUID = 6873622589424472365L;
	protected int taille;

	public int getTaille() {
		return taille;
	}

	protected String name;

	public String getName() {
		return name;
	}

	public DTYPE(String n, int t) {
		name = n;
		taille = t;
	}

	public boolean compareTo(DTYPE autre) {
		return name.equals(autre.name);
	}

	public String toString() {
		return name + "(" + taille + ")";
	}
	
	public boolean equals(DTYPE type) {
		return this.name.equals(type.getName());
	}
}
